package com.lcx.movie.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.stereotype.Component;
import java.sql.Timestamp;
import java.util.Date;

@Component
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
/**
 * 个人电影收藏表
 */
@TableName(value = "movie_favorites")
public class MovieFavorites {
  @TableId(value = "favorites_id",type = IdType.INPUT)
  private long favoritesId;
  @TableField(value = "user_id")
  private long userId;
  @TableField("movie_id")
  private long movieId;
  @TableField("favorite_time")
  private Timestamp favoriteTime;
  @TableField("user_name")
  private String userName;
  //加上电影表的信息
  /**
   * 电影名称（中文）
   */
  @TableField(value = "movie_cn_name")
  private String movieCnName;

  /**
   * 电影名称（外语）
   */
  @TableField(value = "movie_fg_name")
  private String movieFgName;

  /**
   * 电影演职人员
   */
  @TableField(value = "movie_actor")
  private String movieActor;

  /**
   * 电影导演
   */
  @TableField(value = "movie_director")
  private String movieDirector;

  /**
   * 电影详情
   */
  @TableField(value = "movie_detail")
  private String movieDetail;

  /**
   * 电影时长
   */
  @TableField(value = "movie_duration")
  private String movieDuration;

  /**
   * 电影类型
   */
  @TableField(value = "movie_type")
  private String movieType;

  /**
   * 电影评分 默认为0
   */
  @TableField(value = "movie_score")
  private Double movieScore;

  /**
   * 电影票房 默认为0
   */
  @TableField(value = "movie_boxOffice")
  private Double movieBoxOffice;

  /**
   * 电影参评人数 默认为0
   */
  @TableField(value = "movie_commentCount")
  private Long movieCommentCount;

  /**
   * 电影上映时间
   */
  @TableField(value = "movie_releaseDate")
  private Date movieReleasedate;

  /**
   * 电影制片地区
   */
  @TableField(value = "movie_country")
  private String movieCountry;

  /**
   * 电影海报
   */
  @TableField(value = "movie_picture")
  private String moviePicture;

  /**
   * 电影状态 默认为1  1：在线 0：下架
   */
  @TableField(value = "movie_state")
  private Integer movieState;

}
